package com.example.mbl.dao;

import com.example.mbl.dto.StudentDto;
import com.example.mbl.entity.Student;
import com.example.mbl.result.business.StudentPageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    int deleteByPrimaryKey(String studentid);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(String studentid);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    int insertStudentBatch(StudentDto studentDto);

    List<StudentPageResult> getStudentList(@Param("year") String year,
                                           @Param("degree") String degree,
                                           @Param("start") int start,
                                           @Param("pagesize") int pagesize);

    int setStudentVisible(String studentid);
}